package com.yanu.t2s.service.Impl;

import com.yanu.t2s.entity.Tuzai;
import com.yanu.t2s.mapper.TuzaiMapper;
import com.yanu.t2s.service.TuzaiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TuzaiServiceImpl implements TuzaiService {
    @Autowired
    TuzaiMapper tuzaiMapper;

    @Override
    public Tuzai findByIdTuzai(int id_tuzai) {
        return tuzaiMapper.findByIdTuzai(id_tuzai);
    }

    @Override
    public List<Tuzai> findAllTuzai() {
        return tuzaiMapper.findAllTuzai();
    }
}
